package com.ubmap.tube;

import com.thoughtworks.xstream.XStream;

public class TestXstream {

	public void testXstream() {

		System.out.println( "Hello....." );

		XStream xstream = new XStream();

		GeoCodeRequest joe = GeoCodeRequest.newGeoCodeRequest();

		xstream.alias("request", GeoCodeRequest.class);

		xstream.alias("option", Option.class);

		String xml = xstream.toXML(joe);

		System.out.println( xml );

		System.out.println( "Good bye!!!" );

		System.exit( 0 );


	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		TestXstream test = new TestXstream();

		test.testXstream();
	}

}
